package dao;

import java.util.List;

import vo.Warn;

public interface WarnDAO extends GenericDao<Warn, Long> {

	public long findTotalCount();

	public List<Warn> findAll();

	public List<Warn> findAll(int start, int pageSize);

	public Warn getById(long warnId);

	public void update(long warnId);

	public void delete(long warnId);// 不是真是删除

	public List<Warn> getWarnsByUserId(long userId);

	public List<Warn> getWarnsByTopicId(long topicId);

}
